
module("NetWork.Action.LoadGroupAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

LoadGroupAction = NetCmdActionBase:new()

function LoadGroupAction:Action(bytes)
    local LoadGroupSm = require("Protol.groupMessage_pb").LoadGroupSm()
    LoadGroupSm:ParseFromString(bytes)
    Debug.log(stringify(LoadGroupSm))
    if LoadGroupSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(LoadGroupSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.LoadGroupSm(LoadGroupSm)
end

require("NetWork.NetCmdSet").CmdSet[2009] = LoadGroupAction --注册处理对象
